package com.ebt.m.customer.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import android.util.Log;

import java.util.List;

/**
 * Created by carbs on 2016/11/14.
 */

public class AdapterActiveCustomerPager extends FragmentStatePagerAdapter {
    private List<String> listTitle;
    private List<Fragment> listFragment;

    public AdapterActiveCustomerPager(FragmentManager fm, List<String> listTitle, List<Fragment> listFragment) {
        super(fm);
        this.listTitle = listTitle;
        this.listFragment = listFragment;
    }

    @Override
    public Fragment getItem(int position) {
        return listFragment.get(position);
    }

    @Override
    public int getCount() {
        return listTitle.size();
    }

    @Override
    public CharSequence getPageTitle(int position) {
        return listTitle.get(position);
    }
}
